package com.vilen.cms.dto;

/**
 * Created by vilen on 2017/2/13.
 * 返回 ajax 对象
 */
public class AjaxObj {
    /**
     * 0 失败 1成功
     */
    private int result;
    private String msg;
    private Object obj;

    public AjaxObj() {
    }

    public AjaxObj(int result) {
        this.result = result;
    }

    public AjaxObj(int result, String msg) {
        this.result = result;
        this.msg = msg;
    }

    public AjaxObj(int result, String msg, Object obj) {
        this.result = result;
        this.msg = msg;
        this.obj = obj;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
